package com.xuan.shiro.service.impl;

import com.xuan.shiro.domain.User;
import com.xuan.shiro.mapper.UserMapper;
import com.xuan.shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Service;

/**
 * FileName: UserServiceImpl
 * Author:   xuan zongjun
 * Date:     2020/8/20 17:55
 * Description:
 */

@Service
public class UserServiceImpl implements UserService {

    //注入Mapper接口
    @Autowired
    private UserMapper userMapper;



    @Override
    public User findByName(String name) {
        return userMapper.findByName(name);
    }

    @Override
    public User findById(Integer id) {
        return userMapper.findById(id);
    }


}
